package com.carey.download.component;

import android.app.Activity;
import android.os.Bundle;

import com.carey.download.AbstractDownloadApplication;
import com.carey.download.AbstractDownloadManager;

public class BaseActivity extends Activity {
	private AbstractDownloadApplication mApplication;

	@Override
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		mApplication = (AbstractDownloadApplication) getApplication();
	}

	protected AbstractDownloadApplication getDownloadApplication() {
		return mApplication;
	}
	
	protected AbstractDownloadManager getDownloadManager(){
		return mApplication.getDownloadManager();
	}
}
